var RichPluginsOld=RichPluginsOld||{Instances:{TagsOld:{},SlidersOld:{}},Utils:{__:function(b,f){return f[b]||b},ajax:function(b,f){const g=new XMLHttpRequest;g.open("POST",b,!0);g.setRequestHeader("Content-Type","application/json");g.onreadystatechange=function(){g.readyState===XMLHttpRequest.DONE&&200===g.status&&f(JSON.parse(g.responseText))};g.send()},time:function(b,f){return f?b:rpi.Time.getTimeAgo(1E3*parseInt(b),_rplg_lang())},trimtext:function(b,f,g){if(b&&f&&b.length>f){var h=b.substring(0, f).indexOf(" ")+1;if(1>h||f-h>f/2)h=f;var l=f="";0... "+l+""+this.__("read more",g)+"":"")}return b},opentext:function(){var b=this.previousSibling.previousSibling,f="RP-S"==b.tagName?!0:!1,g=document.createElement(f?"rp-h":"rp-s");g.innerHTML=b.innerHTML;b.replaceWith(g);b=this.previousSibling;f=document.createElement(f?"rp-s":"rp-h");f.innerHTML=b.innerHTML;b.replaceWith(f);RichPluginsOld.Utils.rm(this)}, anchor:function(b,f,g){let h=[];g.open_link&&h.push("noopener");g.nofollow_link&&h.push("nofollow");h=h.length?'rel="'+h.join(" ")+'"':"";return'"+f+""},media:function(b){var f=document.createElement("rp-media");for(let h=0;hResponse from the owner"+b;return f},rm:function(b){b&&b.parentNode.removeChild(b)},brsCompare:function(b,f){return parseInt(b.split(":")[0])>parseInt(f.split(":")[0])?1:-1},reviewsInit:function(b,f){b=b.querySelectorAll("rp-review");for(let g=0;gd?"xs":750>d?"x":1100>d?"s":1450>d?"m":1800>d?"l":"xl";b.className="rp-col-"+m;if(e.slider_breakpoints){var n=e.slider_breakpoints.split(",");n.sort(RichPluginsOld.Utils.brsCompare);for(var r=0;rd.clientHeight)return!0;a.preventDefault();C++;clearTimeout(A);A=setTimeout(c.wheelEnd,150,a)},stylesInit:function(){let a="",d=document.getElementById("rplg-style")||document.createElement("style");d.id="rplg-style"; e.color_review&&(a+="r-p rp-review rp-review-inner{background:"+e.color_review+"!important}");e.color_border&&(a+="r-p rp-review rp-review-inner{box-shadow:none!important;border:1px solid "+e.color_border+"!important}");e.color_text&&(a+="r-p rp-review rp-review-inner{color:"+e.color_text+"!important}");e.slider_space_between&&(a+="r-p rp-review rp-review-inner{margin:0 "+e.slider_space_between+"!important}");e.slider_review_height&&(a+="r-p [data-rs] rp-review rp-body{height:"+e.slider_review_height+ "!important}");e.color_scale&&(a+="r-p rp-header rp-scale{color:"+e.color_scale+"!important}");e.color_based&&(a+="r-p rp-header rp-based{color:"+e.color_based+"!important}");e.color_name&&(a+="r-p rp-review rp-review-name,r-p rp-review rp-review-name a{color:"+e.color_name+"!important}");e.color_time&&(a+="r-p rp-review rp-review-time{color:"+e.color_time+"!important}");e.color_stars&&(a+="r-p rp-header rp-rating{color:"+e.color_stars+"!important}");e.color_btn&&(a+="r-p rp-header rp-review_us,r-p rp-header rp-review_us:hover,r-p rp-header rp-review_us:active{background:"+ e.color_btn+"!important}");e.color_prev_next&&(a+="r-p rp-slider rp-btn-prev svg path,r-p rp-slider rp-btn-next svg path{fill:"+e.color_prev_next+"}");e.color_dot&&(a+="r-p rp-dot.active {background:"+e.color_dot+"}");d.innerHTML=a;document.head.appendChild(d)},headerInit:function(){var a=b.querySelector("rp-header rp-stars");let d=b.querySelectorAll("rp-header rp-logo");a&&RichPluginsOld.Utils.starsInit(a);for(a=0;ak){let n=a-k;Math.abs(n)<3*c.swipePerDot()?d=m:n&&(d=Math.ceil(a/m)*m-k)}a=k+d-t;return 0Math.abs(a.left-d.left)||a.left<=d.left)&&d.leftMath.abs(a.right-d.right)||a.right>=d.right)&&d.right>a.left},swipeStep:function(){return e.swipe_step||c.reviewsPerView()},swipePerBtn:function(){return e.swipe_per_btn||c.reviewsPerView()},swipePerDot:function(){return e.swipe_per_dot|| c.reviewsPerView()},reviewWidth:function(){return q[0].offsetWidth},reviewHeight:function(){return q[0].offsetHeight},reviewsPerView:function(){return Math.round(h.offsetWidth/c.reviewWidth())},reviewsBack:function(){return Math.round(h.scrollLeft/c.reviewWidth())},reviewsAhead:function(){return q.length-(c.reviewsBack()+c.reviewsPerView())},reviewName:function(a){return''+(a.author_url?RichPluginsOld.Utils.anchor(a.author_url,a.author_name,e):a.author_name)+ ""},clear:function(){clearTimeout(z);clearTimeout(x);clearTimeout(w);clearTimeout(A);window.removeEventListener("resize",c.resizeListener);h.removeEventListener("scroll",c.scrollListener);g.removeEventListener("wheel",c.wheelListener)}}}};document.addEventListener("DOMContentLoaded",function(){const b=document.querySelectorAll('rp-slider[data-exec=""]');for(var f=0;f